package com.linpq.road.domain;
import com.linpq.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * ClassName : com.linpq.road.domain.RoadSection
 * Desc : TODO
 *
 * @author : LINPQ
 * @date : 2020/12/11 15:43
 */


@Document(indexName = "roadsection", type = "roadsection", shards = 1, replicas = 0, refreshInterval = "-1")
public class Roadsection extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    private String sectionId;

    private String pilenumber;

    private double startpilenumber;

    private String location;

    private double lng;

    private double lat;




    public Roadsection() {
    }

    public Roadsection(String sectionId, String pilenumber, double startpilenumber, String location, double lng, double lat) {
        this.sectionId = sectionId;
        this.pilenumber = pilenumber;
        this.startpilenumber = startpilenumber;
        this.location = location;
        this.lng = lng;
        this.lat = lat;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSectionId() {
        return sectionId;
    }

    public void setSectionId(String sectionId) {
        this.sectionId = sectionId;
    }

    public String getPilenumber() {
        return pilenumber;
    }

    public void setPilenumber(String pilenumber) {
        this.pilenumber = pilenumber;
    }

    public double getStartpilenumber() {
        return startpilenumber;
    }

    public void setStartpilenumber(double startpilenumber) {
        this.startpilenumber = startpilenumber;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    @Override
    public String toString() {
        return "RoadSection{" +
                "id='" + id + '\'' +
                ", sectionId='" + sectionId + '\'' +
                ", pilenumber='" + pilenumber + '\'' +
                ", startpilenumber=" + startpilenumber +
                ", location='" + location + '\'' +
                ", lng=" + lng +
                ", lat=" + lat +
                '}';
    }
}
